﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Test_LYK.Models;
using Test_LYK.Repository;

namespace Test_LYK.Domain
{
    public class PersonDomain
    {
        public bool AddPerson(string name)
        {
            return new PersonRepository().AddPerson(name);
        }

        public bool ModifyPerson(int id, string name)
        {
            return new PersonRepository().ModifyPerson(id, name);
        }

        public List<PersonModel> GetPersonList()
        {
            return new PersonRepository().GetPersonList();
        }
    }
}